<?php

use Illuminate\Database\Seeder;

class SysMenuSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //菜单分组数据
        $sql = <<<EOD
INSERT INTO `sys_menu_groups`(`group_id`, `group_key`, `group_name`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 'admin', '后台菜单', NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menu_groups`(`group_id`, `group_key`, `group_name`, `deleted_at`, `created_at`, `updated_at`) VALUES (2, 'home', '前台菜单', NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
EOD;
        DB::unprepared($sql);
        //菜单数据
        $sql = <<<EOD
INSERT INTO `sys_menus` VALUES (1, 1, '仪表盘', 0, '[]', 'fa fa-dashboard', 0, '', 0, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (2, 1, '系统管理', 0, '[]', 'fa fa-gear', 0, '', 100, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (3, 1, '微信用户管理', 0, '[]', 'fa fa-wechat', 0, '', 1, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (4, 1, '系统信息', 3, '[]', 'fa fa-linux', 1, '', 2, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (5, 1, '控制面板', 8, '[]', 'fa fa-desktop', 1, '', 1, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (6, 1, '菜单分组', 6, '[]', 'icon iconfont icon-caidanfenzu', 2, '', 0, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (7, 1, '菜单管理', 21, '[]', 'icon iconfont icon-caidanguanli', 2, '', 1, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (8, 1, '权限管理', 13, '[]', 'icon iconfont icon-permissions', 2, '权限管理', 2, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (9, 1, '角色管理', 30, '[]', 'icon iconfont icon-role', 2, '', 3, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (10, 1, '用户管理', 39, '[]', 'icon iconfont icon-user', 2, '系统用户管理', 4, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (11, 1, '后台首页', 5, '[]', 'fa fa-home', 1, '后台首页', 0, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (12, 1, '微信标签', 48, '[]', 'icon iconfont icon-icon_group_fill', 3, '', 0, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (13, 1, '微信用户', 54, '[]', 'fa fa-user-circle', 3, '', 0, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (14, 1, '微信设置', 0, '[]', 'icon iconfont icon-manage', 0, '', 10, NULL, '2018-04-07 03:28:57', '2018-04-07 03:28:57');
INSERT INTO `sys_menus` VALUES (15, 1, '自定义菜单', 62, '[]', 'icon iconfont icon-icon_subordinate', 14, '', 0, NULL, '2018-04-07 03:28:57', '2018-04-07 14:22:32');
INSERT INTO `sys_menus` VALUES (16, 1, '微信资源', 0, '[]', 'fa fa-ship', 0, '', 20, NULL, '2018-04-07 13:57:35', '2018-04-07 13:57:51');
INSERT INTO `sys_menus` VALUES (17, 1, '短链接管理', 69, '[]', 'fa fa-chain', 16, '', 1, NULL, '2018-04-07 13:59:29', '2018-04-07 13:59:29');
INSERT INTO `sys_menus` VALUES (18, 1, '微信二维码', 0, '[]', 'fa fa-qrcode', 0, '', 9, NULL, '2018-04-07 14:19:10', '2018-05-28 09:08:23');
INSERT INTO `sys_menus` VALUES (19, 1, '二维码分组', 74, '[]', 'fa fa-object-group', 18, '', 1, NULL, '2018-04-07 14:20:28', '2018-04-07 14:20:35');
INSERT INTO `sys_menus` VALUES (20, 1, '二维码管理', 79, '[]', 'icon iconfont icon-icon_QRcode', 18, '', 2, NULL, '2018-04-07 14:21:11', '2018-04-07 14:21:11');
INSERT INTO `sys_menus` VALUES (21, 1, '扫码日志管理', 84, '[]', 'icon iconfont icon-icon_seelog_fill', 18, '扫码日志查看', 3, NULL, '2018-04-16 13:56:27', '2018-04-16 13:56:36');
INSERT INTO `sys_menus` VALUES (22, 1, '微信模板消息', 0, '[]', 'fa fa-maxcdn', 0, '', 30, NULL, '2018-04-16 14:10:04', '2018-04-17 13:14:59');
INSERT INTO `sys_menus` VALUES (23, 1, '模板管理', 86, '[]', 'fa fa-th-list', 22, '', 999, NULL, '2018-04-17 13:32:57', '2018-04-17 13:32:57');
INSERT INTO `sys_menus` VALUES (24, 1, '模板消息日志', 92, '[]', 'fa fa-american-sign-language-interpreting', 22, '', 999, NULL, '2018-04-17 13:36:51', '2018-04-17 13:36:51');
INSERT INTO `sys_menus` VALUES (25, 1, '微信素材', 0, '[]', 'fa fa-medium', 0, '', 3, NULL, '2018-04-27 13:59:23', '2018-05-14 14:04:12');
INSERT INTO `sys_menus` VALUES (26, 1, '素材分类', 97, '[]', 'icon iconfont icon-zuzhijiagoujiekou', 25, '', 1, NULL, '2018-04-27 14:01:04', '2018-05-14 14:05:22');
INSERT INTO `sys_menus` VALUES (27, 1, '图片素材', 93, '[]', 'fa fa-image', 25, '', 3, NULL, '2018-04-27 14:01:55', '2018-05-14 14:05:31');
INSERT INTO `sys_menus` VALUES (28, 1, '图文素材', 94, '[]', 'fa fa-newspaper-o', 25, '', 2, NULL, '2018-04-27 14:02:56', '2018-05-14 14:05:26');
INSERT INTO `sys_menus` VALUES (29, 1, '语音素材', 96, '[]', 'icon iconfont icon-icon_voice_fill', 25, '', 4, NULL, '2018-04-27 14:04:28', '2018-05-14 14:05:35');
INSERT INTO `sys_menus` VALUES (30, 1, '视频素材', 95, '[]', 'fa fa-video-camera', 25, '', 5, NULL, '2018-04-27 14:04:57', '2018-05-14 14:05:40');
INSERT INTO `sys_menus` VALUES (31, 1, '文件管理', 0, '[]', 'icon iconfont icon-icon_file_fill', 0, '', 90, NULL, '2018-04-30 03:51:30', '2018-04-30 03:51:30');
INSERT INTO `sys_menus` VALUES (32, 1, '文件列表', 123, '[]', 'fa fa-file', 31, '', 999, NULL, '2018-04-30 03:52:23', '2018-04-30 03:52:23');
INSERT INTO `sys_menus` VALUES (33, 1, '自动回复', 134, '[]', 'fa fa-mail-reply-all', 14, '', 1, NULL, '2018-05-10 14:12:41', '2018-05-10 14:12:41');
INSERT INTO `sys_menus` VALUES (34, 1, '微信群发', 0, '[]', 'fa fa-paper-plane', 0, '', 4, NULL, '2018-05-14 14:00:38', '2018-05-14 14:04:54');
INSERT INTO `sys_menus` VALUES (35, 1, '群发管理', 140, '[]', 'fa fa-paper-plane', 34, '', 1, NULL, '2018-05-14 14:01:59', '2018-05-14 14:03:21');
INSERT INTO `sys_menus` VALUES (36, 1, '群发结果', 147, '[]', 'fa fa-history', 34, '', 2, NULL, '2018-05-19 15:17:52', '2018-05-19 15:17:59');
INSERT INTO `sys_menus` VALUES (37, 1, '群发留言', 149, '[]', 'fa fa-comments', 34, '', 3, NULL, '2018-05-19 15:19:31', '2018-05-19 15:19:31');
INSERT INTO `sys_menus` VALUES (38, 1, '微信卡券', 0, '[]', 'fa fa-credit-card', 0, '', 5, NULL, '2018-05-28 09:08:56', '2018-05-28 09:09:13');
INSERT INTO `sys_menus` VALUES (39, 1, '卡券管理', 157, '[]', 'fa fa-credit-card-alt', 38, '', 1, NULL, '2018-05-28 09:09:57', '2018-05-28 09:09:57');
INSERT INTO `sys_menus` VALUES (40, 1, '会员卡管理', 0, '[]', 'fa fa-vcard', 38, '', 10, NULL, '2018-05-31 09:49:48', '2018-05-31 09:53:00');
INSERT INTO `sys_menus` VALUES (41, 1, '会员等级管理', 163, '[]', 'fa fa-signal', 40, '', 1, NULL, '2018-05-31 09:52:46', '2018-05-31 09:53:10');
INSERT INTO `sys_menus` VALUES (42, 1, '投放二维码管理', 169, '[]', 'icon iconfont icon-qrcode_fill', 38, '', 2, NULL, '2018-06-05 04:34:44', '2018-06-05 04:34:44');
INSERT INTO `sys_menus` VALUES (43, 1, '会员管理', 176, '[]', 'fa fa-optin-monster', 40, '', 2, NULL, '2018-06-07 04:43:18', '2018-06-07 04:43:18');
INSERT INTO `sys_menus` VALUES (44, 1, '卡券已领记录', 178, '[]', 'fa fa-tasks', 38, '', 3, NULL, '2018-06-07 08:21:37', '2018-06-07 08:21:46');
INSERT INTO `sys_menus` VALUES (45, 1, '卡券转赠记录', 182, '[]', 'icon iconfont icon-icon_gift_fill', 38, '', 4, NULL, '2018-06-07 08:23:08', '2018-06-07 08:23:08');
INSERT INTO `sys_menus` VALUES (48, 1, '微信消息管理', 186, '[]', 'icon iconfont icon-icon_message_fill', 0, '', 50, NULL, '2018-06-08 09:09:35', '2018-06-08 09:09:35');
INSERT INTO `sys_menus` VALUES (49, 1, '文本消息', 187, '[]', 'icon iconfont icon-text', 48, '', 1, NULL, '2018-06-08 09:10:28', '2018-06-08 09:10:28');
INSERT INTO `sys_menus` VALUES (50, 1, '图片消息', 188, '[]', 'fa fa-image', 48, '', 2, NULL, '2018-06-08 09:44:35', '2018-06-08 09:44:35');
INSERT INTO `sys_menus` VALUES (51, 1, '语音消息', 189, '[]', 'fa fa-volume-up', 48, '', 3, NULL, '2018-06-08 10:59:41', '2018-06-08 10:59:41');
INSERT INTO `sys_menus` VALUES (52, 1, '视频消息', 190, '[]', 'fa fa-video-camera', 48, '', 4, NULL, '2018-06-08 11:00:04', '2018-06-08 11:00:04');
INSERT INTO `sys_menus` VALUES (53, 1, '短视频消息', 191, '[]', 'icon iconfont icon-video_fill', 48, '', 5, NULL, '2018-06-08 11:00:47', '2018-06-08 11:00:47');
INSERT INTO `sys_menus` VALUES (54, 1, '位置消息', 192, '[]', 'icon iconfont icon-icon_location_fill', 48, '', 6, NULL, '2018-06-08 11:01:42', '2018-06-08 11:01:42');
INSERT INTO `sys_menus` VALUES (55, 1, '链接消息', 193, '[]', 'fa fa-link', 48, '', 7, NULL, '2018-06-08 11:02:09', '2018-06-08 11:02:09');
INSERT INTO `sys_menus` VALUES (56, 1, '事件消息', 194, '[]', 'fa fa-flash', 48, '', 8, NULL, '2018-06-08 11:03:07', '2018-06-08 11:03:18');
INSERT INTO `sys_menus` VALUES (57, 1, '被动回复消息', 195, '[]', 'fa fa-mail-reply', 48, '', 9, NULL, '2018-06-08 11:03:49', '2018-06-08 11:03:49');
INSERT INTO `sys_menus` VALUES (60, 1, '会员统计', 204, '[]', 'fa fa-line-chart', 40, '', 3, NULL, '2018-06-15 07:01:58', '2018-06-15 07:01:58');
EOD;
        DB::unprepared($sql);
    }
}
